<template>
  <div class="index">
    <goods v-if="active" @buyShow="buyShow"></goods>
    <buy v-else></buy>
  </div>
</template>


<script>
import goods from "./goods.vue";
import buy from "./buy.vue";
export default {
  name: "index",
  components: {
    goods,
    buy
  },
  data() {
    return {
      active: true
    };
  },
  computed: {},
  created() {},
  methods: {
    buyShow() {
      this.active = false;
    }
  }
};
</script>

<style rel="stylesheet/scss" lang="scss">
.index {
}
</style>
